package ru.kreda.webapp.client.place;

import java.util.List;

import com.google.gwt.place.shared.PlaceTokenizer;
import com.google.gwt.place.shared.Prefix;

public class OrderListPlace extends AbstractPlace {
	private final String groupName;

	public OrderListPlace(String groupName) {
		this.groupName = groupName;
	}

	public String getGroupName() {
		return groupName;
	}

	@Override
	protected void addTokenParts(List<Object> list) {
		list.add(groupName);
	}

	@Prefix("orderList")
	public static class Tokenizer extends AbstractPlaceTokenizer<OrderListPlace> implements
			PlaceTokenizer<OrderListPlace> {

		@Override
		protected OrderListPlace createPlace(String[] parts) {
			return new OrderListPlace(parts[0]);
		}

	}

}
